﻿using System.Collections.Generic;
using eCommerce.Core.Domain.Pictures;

namespace eCommerce.Services.Pictures
{
    public interface IPictureService
    {
        Picture GetPictureById(int pictureId);

        string GetPictureUrl(int pictureId, int targetSize, bool showDefaultPicture);
        Picture Resize(int pictureId, int targetSize);
        Picture InsertPicture(byte[] fileBinary, string contentType, object o, bool b);
        IList<Picture> GetPicturesByProductId(int id);
        string GetDefaultPictureUrl(int targetSize);

        byte[] CropImage(int id, int x, int y, int w, int h);
    }
}